package org.jeecg.modules.assets.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.assets.dto.AssetsListDTO;
import org.jeecg.modules.assets.dto.OptionAssetsItemDTO;
import org.jeecg.modules.assets.dto.OptionPreliminaryAssetsItemDTO;
import org.jeecg.modules.assets.dto.StartAssetsDTO;
import org.jeecg.modules.assets.entity.AssetsPreliminaryResults;
import com.baomidou.mybatisplus.extension.service.IService;

import java.text.ParseException;

/**
 * @Description: 初盘结果管理
 * @Author: jeecg-boot
 * @Date:   2023-12-12
 * @Version: V1.0
 */
public interface IAssetsPreliminaryResultsService extends IService<AssetsPreliminaryResults> {

    void startAssets(StartAssetsDTO startAssets) throws ParseException;

    void startAssetsJob();


    AssetsListDTO getUsetAssetsInfo(AssetsPreliminaryResults assetsPreliminaryResults, Page page ,String queryType,String assetName,
                                    String inventoryStatus,
                                    Integer preliminaryStatus,
                                    String company,
                                    String asset

    );

    Result optionAssetsItem(OptionPreliminaryAssetsItemDTO optionPreliminaryAssetsItem);

    void endPreliminaryAssets();

    /**
     * 根据类型查询状态
     * @param billNo
     * @param queryType
     * @return
     */
    String queryStatusByBillNo(String billNo, String queryType);
}
